var updateStatus = function (info) {
    try {
      log('ddd');
      http.__okhttp__.setTimeout(500);
      var res = http.get('http://192.168.137.1:8001/update/1008' + '/' + info);
      if (res.statusCode != 200) {
        log('服务器异常')
      }
    } catch (error) {
      log('服务器异常')
    }
}

var result = shell("ping 192.168.137.1 8001");
log(result);
console.show();
if(result.code == 0){
  toast("执行成功");
}else{
  toast("执行失败！请到控制台查看错误信息");
}


updateStatus('0-0')

log(device.serial)